import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

import '@/assets/css/reset.css'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import * as Icons from '@element-plus/icons-vue'

// vuex
import store from '@/store'

// require('./mock.js')

// 创建实例
const app = createApp(App)
    .use(router)
    .use(store)
    .use(ElementPlus, { locale: zhCn,})
// 注册图标
Object.keys(Icons).forEach((key) => {
    // console.log(key)
    app.component(key, Icons[key])
})
// 挂载
app.mount('#app')
export default app
